From: Daniel Friesen Date: Mon, 5 Sep 2011 15:30:01 +0000 (+0000) Subject: Pass the key for the skin being created to the constructor of a skin. This is just... X-Git-Tag: 1.31.0-rc.0~27898 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=d755aab30283566d1536feccbc887018a838cea5;p=lhc%2Fweb%2Fwiklou.git Pass the key for the skin being created to the constructor of a skin. This is just something that's been bothering me for awhile, without this it's hard to create extensions that dynamically load skins and implement the skin conversion functionality in a central class. --- diff --git a/includes/Skin.php b/includes/Skin.php index da19a6b7d6..10eba643ad 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -156,7 +156,7 @@ abstract class Skin extends ContextSource { } } } - $skin = new $className; + $skin = new $className( $key ); return $skin; }